package com.gxa.admin.service.impl;

import com.gxa.admin.dao.BannerDao;
import com.gxa.admin.pojo.dto.BannerDto;
import com.gxa.admin.pojo.vo.BannerVo;
import com.gxa.admin.service.BannerService;
import com.gxa.pojo.Banner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BannerServiceImpl implements BannerService {

    @Autowired
    private BannerDao bannerDao;
    @Override
    public void insertBanner(Banner banner) {
        bannerDao.insertBanner(banner);
    }

    @Override
    public void deleteBannerById(String id) {
        bannerDao.deleteBannerById(id);
    }

    @Override
    public void updateBanner(Banner banner) {
        bannerDao.updateBanner(banner);
    }

    @Override
    public BannerVo findBannerAll(BannerDto bannerDto) {
        return bannerDao.findBannerAll(bannerDto);
    }
}
